import {  Modal } from 'antd';
import QueryTag from "../../contentLabel/queryTag";
import SelectLabelList from "../selectLabelList";

const SelectLabel = ({isLabelModalOpen,setIsLabelModalOpen,labels,setLabels}) => {

    const handleOk = () => {
        setIsLabelModalOpen(false);
    };

    const handleCancel = () => {
        setIsLabelModalOpen(false);
    };

    return <Modal title="Basic Modal" destroyOnClose={true} open={isLabelModalOpen} onOk={handleOk} onCancel={handleCancel} width={'60%'}  okText={'确定'} cancelText={'取消'}>
        <QueryTag></QueryTag>
        <SelectLabelList labels={labels} setLabels={setLabels}></SelectLabelList>
    </Modal>
}
export default SelectLabel